<div>
    <div class="row margin-top">

        <div class="col-lg-10 text-right">
        </div>
        <div class="col-lg-2 text-right" v-if="simplifyOwnerCarInfo.ownerId">
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                v-on:click="_addOwnerCar()">
                <i class="fa fa-plus"></i>
                添加车辆
            </button>
        </div>
    </div>
    <div>
        <table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
            <thead>
                <tr>
                    <th>车牌号</th>
                    <th data-hide="phone">车辆品牌</th>
                    <th data-hide="phone">车辆类型</th>
                    <th data-hide="phone">颜色</th>
                    <th data-hide="phone">业主</th>
                    <th data-hide="phone">车位</th>
                    <th data-hide="phone">起租时间</th>
                    <th data-hide="phone">截止时间</th>
                    <th data-hide="phone">状态</th>
                    <th class="text-right">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr v-for="car in simplifyOwnerCarInfo.ownerCars">
                    <td>
                        {{car.carNum}}
                    </td>
                    <td>
                        {{car.carBrand}}
                    </td>
                    <td>
                        {{car.carTypeName}}
                    </td>
                    <td>
                        {{car.carColor}}
                    </td>
                    <td>
                        {{car.ownerName}}({{car.link}})
                    </td>
                    <td v-if="car.areaNum">
                        {{car.areaNum}}车场{{car.num}}车位
                    </td>
                    <td v-else>
                        无
                    </td>
                    <td>
                        {{car.startTime}}
                    </td>
                    <td>
                        {{car.endTime}}
                    </td>
                    <td>
                        {{car.stateName}}
                    </td>
                    <td class="text-right">
                        <div class="btn-group" v-if="car.psId != '-1'">
                            <button class="btn-white btn btn-xs"
                                v-on:click="_deleteCarParkingSpace(car)">释放车位</button>
                        </div>
                        <div class="btn-group" v-else>
                            <button class="btn-white btn btn-xs"
                                v-on:click="_addCarParkingSpace(car)">续租车位</button>
                        </div>
                        <div class="btn-group">
                            <button class="btn-white btn btn-xs"
                                v-on:click="_openEditOwnerCar(car)">修改</button>
                        </div>
                        <div class="btn-group">
                            <button class="btn-white btn btn-xs"
                                v-on:click="_openDelOwnerCarModel(car)">删除</button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <vc:create path="property/editCar" notifyLoadDataComponentName="listOwnerCar"></vc:create>
    <vc:create path="property/deleteOwnerCar" notifyLoadDataComponentName="listOwnerCar"></vc:create>
</div>